package com.cyz.web.app.responsibility;

public class Client {


    public static void main(String[] args) {
        LeaveRequest leaveRequest = new LeaveRequest("zhangsan", 1, "感冒");

        //创建各级领导对象
        GroupLeader groupLeader = new GroupLeader();
        Manager manager = new Manager();
        GeneralManager generalManager = new GeneralManager();

        groupLeader.setNexHandler(manager);

        manager.setNexHandler(generalManager);



        groupLeader.submit(leaveRequest);



    }
}
